import Vue from "vue";

const components = require.context("@/components", false, /\.vue$/);
components.keys().forEach(path => {
    const name = path.slice(2, -4);
    Vue.component(`Hd${name}`, components(path).default);
});


const fields = require.context("@/components/field", true, /\.vue$/);
fields.keys().forEach(path => {
    const name = path.slice(2, -4);
    Vue.component(name, fields(path).default);
});
